package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.MissionCenterItemExample.E_FEEDBACK_DATE;
import static org.jsola.hr.example.MissionCenterItemExample.E_FEEDBACK_USER;
import static org.jsola.hr.example.MissionCenterItemExample.E_MISSION_CENTER_ID;
import static org.jsola.hr.example.MissionCenterItemExample.E_REMARK;
import static org.jsola.hr.example.MissionCenterItemExample.E_STATE;
import static org.jsola.hr.example.MissionCenterItemExample.E_TABLE_DATA;
import static org.jsola.hr.example.MissionCenterItemExample.M_FEEDBACK_USER_MAX;
import static org.jsola.hr.example.MissionCenterItemExample.M_MISSION_CENTER_ID_MAX;
import static org.jsola.hr.example.MissionCenterItemExample.M_MISSION_CENTER_ID_NOT_NULL;
import static org.jsola.hr.example.MissionCenterItemExample.M_REMARK_MAX;
import static org.jsola.hr.example.MissionCenterItemExample.M_STATE_NOT_NULL;
import static org.jsola.hr.example.MissionCenterItemExample.M_TABLE_DATA_MAX;
import static org.jsola.hr.example.MissionCenterItemExample.M_TABLE_DATA_NOT_NULL;
import static org.jsola.hr.example.MissionCenterItemExample.N_FEEDBACK_DATE;
import static org.jsola.hr.example.MissionCenterItemExample.N_FEEDBACK_USER;
import static org.jsola.hr.example.MissionCenterItemExample.N_MISSION_CENTER_ID;
import static org.jsola.hr.example.MissionCenterItemExample.N_REMARK;
import static org.jsola.hr.example.MissionCenterItemExample.N_STATE;
import static org.jsola.hr.example.MissionCenterItemExample.N_TABLE_DATA;

/**
 * 任务调度中心任务子项表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【任务调度中心任务子项表】的参数")
@Data
public class MissionCenterItemUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_MISSION_CENTER_ID, example = E_MISSION_CENTER_ID, required = true)
    @NotNull(message = M_MISSION_CENTER_ID_NOT_NULL)
    @Length(max = 32, message = M_MISSION_CENTER_ID_MAX)
    private String missionCenterId;

    @ApiModelProperty(notes = N_STATE, example = E_STATE, required = true)
    @NotNull(message = M_STATE_NOT_NULL)
    private Integer state;

    @ApiModelProperty(notes = N_TABLE_DATA, example = E_TABLE_DATA, required = true)
    @NotNull(message = M_TABLE_DATA_NOT_NULL)
    @Length(max = 2147483647, message = M_TABLE_DATA_MAX)
    private String tableData;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_FEEDBACK_USER, example = E_FEEDBACK_USER)
    @Length(max = 32, message = M_FEEDBACK_USER_MAX)
    private String feedbackUser;

    @ApiModelProperty(notes = N_FEEDBACK_DATE, example = E_FEEDBACK_DATE)
    private Date feedbackDate;


}

